<?php


namespace app\home\validate;


use think\Validate;

class HomeValidate extends Validate
{
    protected $rule = [
        'content' => 'require|max:1500'
    ];

    protected $message = [
        'content.require' => '评论内容不能为空',
        'content.max' => '评论的字符不能超过1500'
    ];

    protected $scene = [
        'comment' => ['content']
    ];
}